package rabbitmq.customer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2019/8/20 0020.
 */
@Component
@RabbitListener(queues = "xiaowu")
public class Customer13 {

    @RabbitHandler
    public void getMsg(String msg){
        System.out.println( "xiaowu，消费消息："+msg);
    }

}
